package cn.sky.demo.controller;

import cn.sky.demo.aspect.Log;
import cn.sky.demo.enums.BusinessType;
import cn.sky.demo.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sky
 * @date 2025年09月17日 10:50
 * @description
 * @since 1.0.0
 */
@RestController
public class AsyncController{
    @Autowired
    private AsyncService asyncService;
    @RequestMapping("/async")
    @Log(title = "异步测试", businessType = BusinessType.OTHER)
    public String test() {
        asyncService.test();
        return "success";
    }
}
